package com.example.demo.service.impl;

import com.example.demo.dao.RoleMapper;
import com.example.demo.pojo.po.Role;
import com.example.demo.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class RoleServiceImpl implements RoleService {


     @Autowired
     private RoleMapper mapper;


    public List<Role> findAllRoles() {
        List<Role> list = mapper.findAll();
        return list;
    }
}
